diff --git a/include/Syncers/RetrieveRecords.h b/include/Syncers/RetrieveRecords.h index c3b824f..6f1709a 100644 --- a/include/Syncers/RetrieveRecords.h +++ b/include/Syncers/RetrieveRecords.h @@ -4,10 +4,11 @@ #include "Managers/CommitManager.h" #include "Models/API.h" #include "Models/Token.h" +#include "Syncers/SyncerBase.h" namespace Syncers { - class RetrieveRecords + class RetrieveRecords: public SyncerBase { public: RetrieveRecords(); diff --git a/src/Main.cpp b/src/Main.cpp index fe29a57..ea577cd 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -12,11 +12,44 @@ using std::string; using Managers::ActionManager; using Managers::CommitManager; +void printHelp() +{ + cout<<"icd [Action] [flag]\n\n"; + + cout<<"Actions\n"; + cout<<"download\n"; + cout<<"upload\n"; + cout<<"retrieve\n"; + cout<<"delete\n\n"; + + cout<<"Flags\n"; + cout<<"Required for all actions\n"; + cout<<"-u username\n"; + cout<<"-p password\n"; + cout<<"-h host\n\n"; + + cout<<"Required for upload\n"; + cout<<"-s path of song\n"; + cout<<"-sd directory where to search for songs to upload (Optional)\n"; + cout<<"-sr directory where to recursively search for songs to upload (Optional)\n\n"; + + cout<<"Required for download\n"; + cout<<"-b song id\n"; + cout<<"-d path to download song (Optional)\n\n"; + + cout<<"Required for retrieving records\n"; + cout<<"-rt retrieve type (songs is only accepted)\n\n"; + + cout<<"Required for deleting a song\n"; + cout<<"-D song id\n\n"; +} + + int main(int argc, char** argv) { if (argc < 2) { - cout<<"No actions provided"<