allow help and arguments to be called via wrapper script
This commit is contained in:
parent
a06a68c876
commit
71cb1d9182
|
@ -71,7 +71,7 @@ public class SparklePony {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ShowHelp () {
|
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 ("Sync Collaboration folder with remote repositories.");
|
||||||
Console.WriteLine ("");
|
Console.WriteLine ("");
|
||||||
Console.WriteLine ("Arguments:");
|
Console.WriteLine ("Arguments:");
|
||||||
|
|
|
@ -10,7 +10,7 @@ if [[ "$1" == "start" ]]; then
|
||||||
echo -n "Starting SparklePony..."
|
echo -n "Starting SparklePony..."
|
||||||
|
|
||||||
# Start SparklePony in the background and save the pid
|
# 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=$!
|
PID=$!
|
||||||
echo $PID > /tmp/sparklepony/sparklepony.pid
|
echo $PID > /tmp/sparklepony/sparklepony.pid
|
||||||
echo " Done."
|
echo " Done."
|
||||||
|
@ -27,3 +27,7 @@ if [[ "$1" == "stop" ]]; then
|
||||||
echo "SparklePony isn't running."
|
echo "SparklePony isn't running."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$1" == "--help" ]]; then
|
||||||
|
mono /usr/local/share/sparklepony/SparklePony.exe --help
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue