mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-31 12:19:08 -06:00
Merge pull request #137 from cmasone-attic/flags
Shorten 'dataset' related flags
This commit is contained in:
@@ -20,7 +20,7 @@ cd /tmp/mlb_data
|
||||
|
||||
wget -e robots=off -x -i urls.txt
|
||||
|
||||
<noms>/clients/xml_importer/xml_importer --file-store=/tmp/mlb_data --dataset-id=mlb/xml gd2.mlb.com/
|
||||
<noms>/clients/xml_importer/xml_importer --file-store=/tmp/mlb_data --ds=mlb/xml gd2.mlb.com/
|
||||
|
||||
<noms>/clients/pitchmap/index/index --file-store=/tmp/mlb_data --input-dataset-id=mlb/xml --output-dataset-id=mlb/heatmap
|
||||
<noms>/clients/pitchmap/index/index --file-store=/tmp/mlb_data --input-ds=mlb/xml --output-ds=mlb/heatmap
|
||||
```
|
||||
|
||||
@@ -17,8 +17,8 @@ import (
|
||||
|
||||
var (
|
||||
cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")
|
||||
inputID = flag.String("input-dataset-id", "", "dataset to pull data from.")
|
||||
outputID = flag.String("output-dataset-id", "", "dataset to store data in.")
|
||||
inputID = flag.String("input-ds", "", "dataset to pull data from.")
|
||||
outputID = flag.String("output-ds", "", "dataset to store data in.")
|
||||
)
|
||||
|
||||
func getAsString(fm types.Map, key string) string {
|
||||
|
||||
@@ -35,7 +35,7 @@ func NewFlags() datasetFlags {
|
||||
func NewFlagsWithPrefix(prefix string) datasetFlags {
|
||||
return datasetFlags{
|
||||
chunks.NewFlagsWithPrefix(prefix),
|
||||
flag.String(prefix+"dataset-id", "", "dataset id to store data for"),
|
||||
flag.String("ds", "", "dataset id to store data for"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user