allow help and arguments to be called via wrapper script

This commit is contained in:
Hylke Bons 2010-04-27 23:46:38 +01:00
parent a06a68c876
commit 71cb1d9182
2 changed files with 6 additions and 2 deletions

View file

@ -71,7 +71,7 @@ public class SparklePony {
}
public static void ShowHelp () {
Console.WriteLine ("Usage: mono SparklePony.exe [OPTION]...");
Console.WriteLine ("Usage: sparklepony [start|stop] [OPTION]...");
Console.WriteLine ("Sync Collaboration folder with remote repositories.");
Console.WriteLine ("");
Console.WriteLine ("Arguments:");

View file

@ -10,7 +10,7 @@ if [[ "$1" == "start" ]]; then
echo -n "Starting SparklePony..."
# Start SparklePony in the background and save the pid
mono /usr/local/share/sparklepony/SparklePony.exe &
mono /usr/local/share/sparklepony/SparklePony.exe $2 &
PID=$!
echo $PID > /tmp/sparklepony/sparklepony.pid
echo " Done."
@ -27,3 +27,7 @@ if [[ "$1" == "stop" ]]; then
echo "SparklePony isn't running."
fi
fi
if [[ "$1" == "--help" ]]; then
mono /usr/local/share/sparklepony/SparklePony.exe --help
fi